// 使用promise方式改进异步代码
const promiseVal = (val) => new Promise((resolve) => {
  setTimeout(() => {
    resolve(val)
  }, 10)
})

const myPromise = async () => {
  const a = await promiseVal('hello')
  const b = await promiseVal('lagou')
  const c = await promiseVal('I♥Y')
  console.log(a + b + c)
}

myPromise()